Skip to main content

JSON Data


To mimic transaction data for past one year an array of objects ( located at src/transaction.js ) is used where each object represent a particular transactions and has the following properties :

Properties of data object


KeyDescription
dateRepresents the date on which the transaction was made
amountRepresents the amount of the transaction
typeWhether it is a debit or credit transaction
timeRepresents the time at which transaction was made
transaction_idRepresents a unique id for each transaction

Data source and generation


The mock data used in the project is a prompt based AI-generated data obtained from Mackaroo.

export const transactions = [
{
"date": "2023-01-01 8:34:37", //date is in yyyy-mm-dd format
"amount": 3474.81,
"type": "debit",
"time": "9:17 pm",
"transaction_id": 990
},
{
"date": "2023-01-02 12:42:16",
"amount": 1486.89,
"type": "credit",
"time": "1:34 am",
"transaction_id": 268
},
{
"date": "2023-01-02 14:51:04",
"amount": 8182.93,
"type": "debit",
"time": "5:45 am",
"transaction_id": 519
},